<template>
  <div class="about">
    <h2>大家好，欢迎来到尚硅谷直播间</h2>
  </div>
</template>

<script setup lang="ts" name="About">
import {onBeforeMount,onMounted} from "vue";
//生命周期钩子
onBeforeMount(()=>{
  console.log("About组件挂载前")
})
onMounted(()=>{
  console.log("About组件挂载后")
})
</script>

<style scoped>
.about {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: rgb(85, 84, 84);
  font-size: 18px;
}
</style>